import request from '@/utils/request'
// 单船查询API
export function getSingleShip(ShipID) {
  return request({
    url: `/system/ship/singleShip/${ShipID}`,
    method: 'get'
  })
}
// 查询船位管理列表
export function listShip(query) {
  return request({
    url: '/system/ship/list',
    method: 'get',
    params: query
  })
}

// 查询船位管理详细
export function getShip(ShipID) {
  return request({
    url: '/system/ship/' + ShipID,
    method: 'get'
  })
}

// 新增船位管理
export function addShip(data) {
  return request({
    url: '/system/ship',
    method: 'post',
    data: data
  })
}

// 修改船位管理
export function updateShip(data) {
  return request({
    url: '/system/ship',
    method: 'put',
    data: data
  })
}

// 删除船位管理
export function delShip(ShipID) {
  return request({
    url: '/system/ship/' + ShipID,
    method: 'delete'
  })
}
